<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>JSP Page</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script type="text/javascript">
        	function getData(){
        		$.ajax({
        			type: "get",
        			contentType: "application/json",
        			url: "services/roomService/room/room/11",
        			dataType: "json",
        			success: function (result) {
        				alert(result);
        			}
       			}); 
        	}
        </script>
    </head>
    <body>
        <div id="result"></div>
        <input id="id">
        <input type="button" onclick="getData()" value="get">
    </body>
</html>
